import { stringify } from "qs";
import request from "@/utils/request";

export async function BrandList(params) {
  return request(`/merchant/query`, {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function removeBrand(params) {
  return request(`/merchant/del/${params.code}`, {
    method: "POST",
    body: {}
  });
}

export async function addUser(params) {
  return request("/merchant/add", {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function editUser(params) {
  return request("/merchant/edit", {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function deptQuery(params) {
  return request("/merchant/query", {
    method: "POST",
    body: params
  });
}

export async function clientDetail(params) {
  return request(`/merchant/detail/${params.adminNo}`, {
    method: "POST",
    body:{}
  });
}
export async function brandChange(params) {
  return request("/brand/sort/change", {
    method: "POST",
    body: params
  });
}
export async function brandList(params) {
  return request("/merchant/brand/list", {
    method: "POST",
    body: {}
  });
}
export async function getCompany(params) {
  return request("/merchant/enterprise/list", {
    method: "POST",
    body: params
  });
}

export async function bindCompany(params) {
  return request("/merchant/bind", {
    method: "POST",
    body:params
  });
}
